package com.atguigu.feign;

import com.atguigu.feignService.FeignAgentFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *@ClassName: FeignAgent
 *@Author: Administrator
 *@Date: 2020-10-19 21:21
 */
@FeignClient(name = "Sentinel-Feign-Provider", fallback = FeignAgentFallback.class)
public interface FeignAgent {

    @RequestMapping(path = "/hello", method = RequestMethod.GET)
    String feignHello();
}
